package com.kelvin.paopao.module.login;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.kelvin.paopao.R;
import com.kelvin.paopao.module.base.BaseActivity;
import com.kelvin.paopao.module.login.login.LoginActivity;
import com.kelvin.paopao.module.login.register.registerStep1.RegisteStep1Activity;

import butterknife.OnClick;

/**
 * Created by Administrator on 2017/5/7.
 */

public class LoginAndRegisterActivity extends BaseActivity {
    @Override
    protected int attachLayoutRes() {
        return R.layout.activity_login_and_register;
    }

    @Override
    protected void initInjector() {

    }

    @Override
    protected void initViews() {

    }

    @Override
    protected void updateViews(boolean isRefresh) {

    }

    /**
     * 进入登陆或者注册界面
     *
     * @param context
     */
    public static void launch(Context context) {
        Intent intent = new Intent(context, LoginAndRegisterActivity.class);
        context.startActivity(intent);
    }


    @OnClick({R.id.tv_login, R.id.tv_register})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_login:
                LoginActivity.launch(LoginAndRegisterActivity.this);
                break;
            case R.id.tv_register:
                RegisteStep1Activity.launch(LoginAndRegisterActivity.this);
                break;
        }
    }
}
